package com.team.game;

import android.graphics.Bitmap;
import android.graphics.RectF;
import android.view.MotionEvent;

public class Assets {

    //метод проверки попадает ли MotionEvent event в область RectF rect
    public static boolean inRect (RectF rect, MotionEvent event) {
        return event.getX () > rect.left && event.getX () < rect.right &&
                event.getY () > rect.top && event.getY () < rect.bottom;
    }

    public static boolean inRect (RectF rect, float x, float y) {
        return  x > rect.left && x < rect.right &&
                y > rect.top && y < rect.bottom;
    }

    public static Bitmap orc;
    public static Bitmap yarik;
    public static Bitmap pause;


}


